<template>
  <div class="risk">
    <div class="danger-menu">
      <div class="danger-menu-list" @click="_goRiskPoint()">
        <img src="@/assets/Images/AppIcon/icon_identify_point.png" alt="" />
        <div>风险点划分</div>
      </div>
      <div class="danger-menu-list" @click="_goRiskPointIdentify()">
        <img src="@/assets/Images/AppIcon/icon_identify_control.png" alt="" />
        <div>风险辨识管控</div>
      </div>
    </div>

    <div class="content">
      <!-- 作业规程与风险告知卡 -->
      <div class="list">
        <div><span>作业规程与风险告知卡</span></div>
        <div class="content-menu">
          <div class="content-menu-list" @click="_goRiskOpRegulation()">
            <img src="@/assets/Images/AppIcon/icon_safety_rule.png" alt="" />
            <div>安全作业规程</div>
          </div>
          <div class="content-menu-list" @click="_goRiskNotifyCard()">
            <img
              src="@/assets/Images/AppIcon/icon_risk_notice_clip.png"
              alt=""
            />
            <div>风险告知卡</div>
          </div>
          <div class="content-menu-list" @click="_goRiskMapLevel()">
            <img src="@/assets/Images/AppIcon/icon_risk_map.png" alt="" />
            <div>风险分布图</div>
          </div>
        </div>
      </div>
      <!-- 检查表编制 -->
      <div class="list">
        <div><span>检查表编制</span></div>
        <div class="content-menu">
          <div class="content-menu-list" @click="_goRiskTemplateCompany()">
            <img src="@/assets/Images/AppIcon/icon_company_check.png" alt="" />
            <div>公司级检查表</div>
          </div>
          <div class="content-menu-list" @click="_goRiskTemplateDept()">
            <img src="@/assets/Images/AppIcon/icon_section_check.png" alt="" />
            <div>部门车间检查表</div>
          </div>
          <div class="content-menu-list" @click="_goRiskTemplatePost()">
            <img src="@/assets/Images/AppIcon/icon_post_check.png" alt="" />
            <div>岗位检查表</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  created() {},
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["baseUrl", "roles"]),
  },
  methods: {
    _goRiskPoint() {
      this.$router.push({
        path: "/RiskPoint/RiskPointList",
        query: {},
      });
    },
    _goRiskOpRegulation() {
      this.$router.push({
        path: "/RiskPoint/RiskOpRegulation",
        query: {},
      });
    },
    _goRiskPointIdentify() {
      this.$router.push({
        path: "/RiskPoint/RiskPointIdentify",
        query: {},
      });
    },
    _goRiskNotifyCard() {
      this.$router.push({
        path: "/RiskPoint/RiskNotifyCard",
        query: {},
      });
    },
    _goRiskMapLevel() {
      this.$router.push({
        path: "/RiskPoint/RiskMapLevel",
        query: {},
      });
    },
    _goRiskTemplateCompany() {
      this.$router.push({
        path: "/RiskPoint/RiskTemplateCompany",
        query: {},
      });
    },
    _goRiskTemplateDept() {
      this.$router.push({
        path: "/RiskPoint/RiskTemplateDept",
        query: {},
      });
    },
    _goRiskTemplatePost() {
      this.$router.push({
        path: "/RiskPoint/RiskTemplatePost",
        query: {},
      });
    },
  },
};
</script>

<style lang="less" scoped>
.risk {
  background-color: #e8f1f8;
}
.danger-menu {
  display: flex;
  width: 100%;
  height: 100px;
  background-color: #383d40;
  .danger-menu-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    img {
      width: 55px;
      height: 55px;
      margin-bottom: 10px;
    }
  }
}
.content {
  background-color: #fff;
  padding-top: 0;
  padding-bottom: 0;

  overflow: hidden;
  margin-bottom: 10px;
  .danger-title {
    color: orange;
    font-weight: bold;
  }
  .list {
    background-color: #f8f8f8;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    span {
      font-size: 10px;
      // margin-left: 15px;
      color: #666;
    }
    .content-menu {
      display: flex;
      width: 100%;
      margin: 20px 0 10px 0;
      .content-menu-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 13px;

        img {
          width: 25px;
          height: 25px;
          margin-bottom: 15px;
        }
        span {
          margin-top: 10px;
          font-size: 8px;
          color: #666;
        }
      }
    }
  }
}
</style>
